package com.sky.controller.user;

import com.sky.dto.UserLoginDTO;
import com.sky.result.Result;
import com.sky.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/user/user")
public class UserController {
    @Autowired
    private UserService userService;


    /**
     * 微信小程序登录
     * @param dto
     * @return
     */
    @PostMapping("/login")
    public Result login(@RequestBody UserLoginDTO dto){
        return userService.login(dto);

    }
}
